<template>
  <div class="news">
    <section class="attention">
      <div class="news-att-header">
        <i class="iconfont">&#xe8b8;</i>
        <div class="n-header-center">
          <b>系统消息</b><span>秒杀专区暂时下线公告</span>
        </div>
      </div>
      <i class="iconfont">&#xe6a3;</i>
    </section>
    <ul>
      <li>
        <i class="iconfont">&#xe620;</i>
        <div class="news-main">
          <b>盒马鲜生</b>
          <p>亲，请问还有什么需要帮助的吗？</p>
        </div>
        <span>15:29</span>
      </li>

      <li>
        <i class="iconfont">&#xe620;</i>
        <div class="news-main">
          <b>YOYO超市</b>
          <p>感谢好评</p>
        </div>
        <span>09:19</span>
      </li>
      <li>
        <i class="iconfont">&#xe620;</i>
        <div class="news-main">
          <b>菜鸟驿站</b>
          <p>亲，快递已送达</p>
        </div>
        <span>08:33</span>
      </li>
    </ul>
    <div class="news-lianxi" @click="goQuestion">
      <i class="iconfont">&#xec2e;</i><b>我的客服</b>
    </div>
  </div>
</template>

<script>
export default {
  name: 'news',
  data() {
    return {
      data: {
        storeName: '', // 店名

      },
    }
  },
  methods: {
    goQuestion() {
      this.$router.push({ path: '/question' })
    },
    goChat() {
      this.$router.push({ path: '/chat' })
    },
  },
}
</script>

<style lang="scss" scoped>
body {
  width: 100%;
}
@font-face {
  font-family: "iconfont"; /* Project id 3284892 */
  src: url("//at.alicdn.com/t/font_3284892_474j9qeppa3.woff2?t=1648707439233")
      format("woff2"),
    url("//at.alicdn.com/t/font_3284892_474j9qeppa3.woff?t=1648707439233")
      format("woff"),
    url("//at.alicdn.com/t/font_3284892_474j9qeppa3.ttf?t=1648707439233")
      format("truetype");
}
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
.news {
  background-color: #ddd;
  i {
    color: #999;
  }
  .attention {
    width: 100%;
    height: 60px;
    background-color: #fff;
    padding: 0 15px;
    box-sizing: border-box;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgb(214, 212, 212);
    border-bottom: 1px solid rgb(214, 212, 212);
    i {
      display: block;
      height: 100%;
      line-height: 60px;
      font-size: 25px;
    }
    .news-att-header {
      display: flex;
      width: 200px;
      height: 60px;
      .n-header-center {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-left: 15px;
        color: rgb(97, 93, 93);
        > b {
          width: 100px;
          height: 25px;
          font-weight: 400;
        }
        > span {
          width: 120px;
          height: 25px;
        }
      }
    }
  }
  ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    li {
      width: 100%;
      height: 60px;
      margin: 3px 0;
      padding: 0 15px;
      box-sizing: border-box;
      background-color: #fff;
      display: flex;
      .news-main {
        flex: 1;
        margin-left: 10px;
        > b {
          display: block;
          font-size: 16px;
          font-weight: 400;
          height: 35px;
          line-height: 40px;
        }
        > p {
          height: 25px;
        }
      }
      > span {
        width: 40px;
        margin-top: 10px;
        // height: 60px;
      }
      > i {
        height: 60px;
        font-size: 35px;
        line-height: 60px;
      }
    }
  }
  .news-lianxi {
    position: fixed;
    right: 0;
    bottom: 30%;
    width: 80px;
    height: 50px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    >b{
      color: red;
    }
    > i {
      font-size: 30px;
      color: red;
    }
  }
}
</style>
